#!/bin/bash
source /etc/profile
pro_deploy_path="/web/sangong/publish";
pro_logy_path="/web/sangong/publish/sg.log";
pro_jar_path="/web/sangong/sangong/target/sangong-0.0.1-SNAPSHOT.jar";
cd ${pro_deply_path};
pro_port=`ps -ef| grep java|grep sangong-0.0.1-SNAPSHOT.jar| awk '{print \$2}'`;
if !([ -z ${pro_port} ]);
 then   kill -9 ${pro_port};
fi 
nohup  /soft/jdk1.8.0_151/bin/java -jar ${pro_jar_path} > ${pro_logy_path} 2>&1 & 




